<template>
	<view>
		<view class="list-item">
			<image :src="item.image" style="width: 100%;"></image>
			<view class="right">
				<view class="title">{{item.title}}</view>
				<view class="desc">{{item.desc}}</view>
				<view class="price">{{item.price}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				item: {},
				
			};
		},
		async onLoad({
			id
		}) {
			this.id = id;
			const resp = await uniCloud.database().collection('list').doc(this.id).get({
				getOne: true
			})
			this.item = resp.result.data;
		}
	}
</script>

<style lang="scss">

</style>